﻿<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:s="http://www.codeplex.com/MSSqlSchemaDoc">

  <xsl:param name="DocumentationFile"/>

  <xsl:template match="/s:Synonym">
    <html>
      <head>
        <title>
          Synonym: <xsl:value-of select="@Name"/>
        </title>
        <link rel="stylesheet" type="text/css" href="../main.css"/>
      </head>
      <body>
          <table width="100%">
            <tr>
              <td width="50%" class="descriptionHeader right">Synonym: </td>
              <td class="objectName">
                <xsl:value-of select="@Name"/>
              </td>
            </tr>
            <tr>
              <td colspan="2" class="blank"></td>
            </tr>
            <tr>
              <td colspan="2" class="documentationHeader center">
                Description:
              </td>
            </tr>
            <tr>
              <td colspan="2" class="documentation center">
                <pre>
                  <xsl:value-of select="document($DocumentationFile)/s:SynonymDocumentation/s:Documentation"/>
                </pre>
              </td>
            </tr>
            <tr>
              <td colspan="2" class="blank"></td>
            </tr>
            <tr>
              <td class="descriptionHeaderMedium right">
                Synonym for object:
              </td>
              <td class="synonymPointer">
                <xsl:value-of select="s:BaseObjectName"/>
              </td>
            </tr>
          </table>
      </body>
    </html>
  </xsl:template>

</xsl:stylesheet>